import request from '@/utils/request'
/**
 * 登录接口
 * @param {mobile,password} data
 * @returns
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 获取用户信息
 * @returns
 */
export function getUserProfile() {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 * 获取员工基本信息
 * @param {id} id
 * @returns
 */
export function getUserByIdDetail(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
export function logout() {
}
